import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
// 部门列表组件
import Department from './views/org/Department'
// 员工列表组件
import Employee from './views/org/Employee'
// 数据字典列表组件
import SystemDictionaryType from './views/system/SystemDictionaryType'
// 店铺入驻
import ShopRegister from './views/ShopRegister'
// 店铺管理
import Shop from './views/org/Shop'
// 店铺入驻修改
import ShopUpt from './views/system/ShopUpt'
// 菜单管理
import Menu from './views/system/Menu'
// 角色管理
import Role from './views/system/Role'
// URL管理
import Permission from './views/system/Permission'
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '店铺入驻',
        hidden: true
    },
    {
        path: '/shopUpt',
        component: ShopUpt,
        name: '店铺入驻修改',
        hidden: true
    },
    {
        path: '/',
        redirect: '/echarts'
    },
    {
        path: '/',
        component: Home,
        name: 'echarts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;